<!doctype html>
<html lang="zh-CN">
<head>
    {% load static %}
    <!-- 必须的 meta 标签 -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- Bootstrap 的 CSS 文件 -->
    <link href="{% static  'bootsrap/css/bootstrap.min.css' %}" rel="stylesheet">
    <script src="{% static 'bootsrap/js/bootstrap.bundle.min.js' %}"></script>

    <title>在线学习系统</title>
    <link rel="icon" href="{% static 'img/tubiao.jpg' %}" type="image/x-icon">


    <style type="text/css">

    </style>
    {% load static %}
</head>

{% load static %}
<body  background="{% static 'img/background.jpg' %}" style=" background-repeat:no-repeat ;background-size:100% 100%;
background-attachment: fixed;">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
    <div class="container-fluid">
        <a class="navbar-brand" href="/">
            <img src="{% static 'img/tubiao.jpg' %}" style="margin-left: 20px" width="30" height="30">
            在线学习系统
        </a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarScroll"
                aria-controls="navbarScroll" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarScroll">
            <ul class="navbar-nav me-auto my-2 my-lg-0 navbar-nav-scroll" style="--bs-scroll-height: 100px;">
                <li class="nav-item">
                    <a class="nav-link active" aria-current="page" href="/students/">我的课程</a>
                </li>

            </ul>
            <ul class="navbar-nav  d-flex dropdown" style="--bs-scroll-height: 100px;margin-right: 30px">
                <a class="navbar-brand" href="/">

                </a>

                <a class="nav-link dropdown-toggle" href="#" id="navbarScrollingDropdown" role="button"
                   data-bs-toggle="dropdown" aria-expanded="false">
                    {{ request.session.name }}
{#                    <img src="{% static 'img/tubiao.jpg' %}" alt="" width="25" height="25">#}
                </a>

                <ul class="dropdown-menu" aria-labelledby="navbarScrollingDropdown">
                    {% if request.session.type == 3 %}
                        <li><a class="dropdown-item" href="{% url 'teachers_index' %}">切换教师端</a></li>
                    {% elif request.session.type == 6 %}
                        <li><a class="dropdown-item" href="{% url 'myadmin_index' %}">切换后台管理端</a></li>
                    {% elif  request.session.type == 1 %}
                        <li><a class="dropdown-item" href="{% url 'teachers_register' %}">审核教师</a></li>
                    {% elif  request.session.type == 4 %}
                        <li><a class="dropdown-item" href="{% url 'teachers_register' %}">提交教师审核</a></li>
                    {% endif %}
                    <li><a class="dropdown-item" href="#">编辑资料</a></li>
                    <li><a class="dropdown-item" href="{% url 'pswd_edit' %}">修改密码</a></li>
                    <li><a class="dropdown-item" href="/logout/">退出登录</a></li>
                </ul>
            </ul>

        </div>
    </div>
</nav>
{#coolpsase#}
<div class="col" style="opacity: 0.9;background-color: white;padding: 30px 30px 30px 30px;margin: 20px 20px 20px 20px;border-radius: 20px">
{% block students_index %}

{% endblock %}
</div>

</body>


</html>